<template>
  <section class="app-main">
    <router-view v-slot="{ Component }">
      <transition name="fade-transform" mode="out-in">
        <keep-alive :include="[]">
          <component class="view" :is="Component" />
        </keep-alive>
      </transition>
    </router-view>
  </section>
</template>

<script>
export default {
  name: "AppMain",
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
$header-height: 60px;
.app-main {
  min-height: calc(100vh - $header-height);
  position: relative;
  overflow: hidden;
//   background-color: #f0f2f5;
  padding: 15px;
}
.fixed-header + .app-main {
  padding-top: $header-height;
}
</style>

<style lang="scss">
// fix css style bug in open el-dialog
.el-popup-parent--hidden {
  .fixed-header {
    padding-right: 15px;
  }
}
</style>
